package io.github.talelin.latticy.model;

import java.math.BigDecimal;
import io.github.talelin.latticy.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author generator@lms
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("c_order")
public class OrderDO extends BaseModel {


    /**
     * 商品id
     */
    private Integer spuId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 收货地址
     */
    private String address;

    /**
     * 总金额
     */
    private BigDecimal totalPrice;

    /**
     * 是否支付 0表示未支付1表示已支付
     */
    @TableField("isPay")
    private Integer isPay;


}
